package com.meitutest.autoscript.utils;


import android.support.test.uiautomator.UiDevice;

import java.io.IOException;


/**
 * 执行命令，不带流清空的操作
 */
public class CMDUtils {


    public static String runCmdByDevice(UiDevice device, String command) {
        String info = "unknown";
        TestReport.i("CMDUtils_runCmdByDevice: " + command);
        try {
            info = device.executeShellCommand(command);
        } catch (IOException e) {
            TestReport.e("CMDUtils_runCmdByDevice: " + e.getMessage());
        }
        return info;
    }


}
